Z80 Assembler

Quite a simple assembler (currently) but it will allow you to test/write routines or even games.

The editor also is extremely simple with virtually no features whatsoever, just enough to allow you edit, save and load source code.

Currently only assembles legal Z80 instructions (no SLL, LD	B,RES 2,(IX+dd) etc.)

Can evaluate equations such as LABEL + (7 *4) or 7 + (5 * 9) but (7 * 2) + (3 * 6) will be considered as LD A,(xxxx) for example.

Please read the use of Directives carefully, especially the use of END.

If you've used assemblers before then this will be very straightforward to use.

If you check the Print List file box you have a listing produced name your_filename.lst.
It will be saved in the same folder as your assembler source code.

You can write code for a cartridge using the DEFCART directive.

Though you don't have to save your source code before assembling I encourage you to do so.

DIRECTIVES

ORG

EQU
 
DEFCART - DEFine Cart (DEFCART "xxxxxxxxx", yy), Cartridge name must be less than 10 characters long, yy is scramble code.

DEFB or DB - DEFine Byte (DEFB xx,xx,xx)

DEFW or DW - DEFine Word (DEFW xxxx,xxxx,xxxx)

DEFM or DM - DEFine Message (currently only 1 set of quotes per line, DEFM "HELLO")

DEFS or DS - DEFine Space (DEFS 128 will reserve 128 bytes of space)

DEF$ or D$ - DEFine message with bit 7 of last byte set)

DEFR or DR - DEFine Repeat (DEFR 10,128 will put 128 into next 10 bytes)

INCLUDE    - INCLUDE source file (either filename if in same folder or full path) , can be nested to 255 levels.

INCBIN     - INCBIN binary file (either filename if in same folder or full path)

END        - This must be the last instruction in EVERY source file.
